/**
 * Copyright (C) 2021-2022 maminjie <canpool@163.com>
 * SPDX-License-Identifier: LGPL-2.1
 * Powered by Qt-Advanced-Docking-System
**/

#pragma once

#include "qads_global.h"

#include <QSplitter>

QADS_BEGIN_NAMESPACE

class DockSplitterPrivate;

class QADS_EXPORT DockSplitter : public QSplitter
{
    Q_OBJECT
public:
    DockSplitter(QWidget *parent = nullptr);
    DockSplitter(Qt::Orientation orientation, QWidget *parent = nullptr);
    ~DockSplitter() override;

    bool hasVisibleContent() const;

    QWidget *firstWidget() const;
    QWidget *lastWidget() const;

    bool isResizingWithContainer() const;

private:
    DockSplitterPrivate *d;
}; // class DockSplitter

QADS_END_NAMESPACE
